<?php
include_once dirname(__FILE__)."/pOHA.php";
include_once dirname(__FILE__)."/utils.php";
include_once dirname(__FILE__)."/bigbutton.php";

class VerticalMenu extends HTMLTable
{
    function VerticalMenu($menuItems)
    {
        $rows = array();
        $items = "";
        
        //Items
        for($i = 0; $i < count($menuItems); $i++)
        {
            $mi = strToUrl($menuItems[$i]);
            $url = createPagePath($mi);
            $btn = new BigButton($url, $menuItems[$i]);
            $items .= $btn->render();
        }
        
        $cell = new HTMLTableCell($items, 0, 0);
        $row = new HTMLTableRow($cell);
        array_push($rows, $row);

        parent::HTMLTable($rows, '', '', '', '0', '0');
        $this->setAttribute("width", "150");
    }
}
?>
